package com.leyou.item.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页结果封装对象
 */
@Data
public class PageResult implements Serializable {
    private Long total;//总记录数
    private List items;//当前页结果
    private Long totalPage;//总页数

    public PageResult(Long total, List items, Long totalPage) {
        this.total = total;
        this.items = items;
        this.totalPage = totalPage;
    }
}
